package com.itao.springboot.controller;

import com.itao.springboot.service.TaskService;
import com.itao.springboot.tesk.ScheduleTask;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sjt
 * @Date 2024/10/30 12:13
 */
@RestController
@AllArgsConstructor
public class ScheduleController {

    private TaskService taskService;

    @GetMapping("/add")
    public void addTask(){
        taskService.addTask(new ScheduleTask(), 1L);
    }
}
